import Vue from 'vue'
import VueRouter from 'vue-router'
import CampusBinhai from '../views/CampusBinhai.vue'
import CampusChashan from '../views/CampusChashan.vue'
import CampusYueqing from '../views/CampusYueqing.vue'
import StudentSystem from '../views/StudentSystem.vue'
Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'CampusBinhai',
    component: CampusBinhai
  },
  {
    path: '/chashan',
    name: 'CampusChashan',
    component:CampusChashan,
    children:[
      {
        path:'building5',component: { template: '<div>五号楼信息</div>' }
      },
      {
        path:'building6',component: { template: '<div>LIU号楼信息</div>' }
      },
      {
        path:'building7',component: { template: '<div>7号楼信息</div>' }
      },
    ]
    },
  {
    path: '/yueqing',
    name: 'CampusYueqing',
    component: CampusYueqing
  },
  {
    path: '/studentsystem',
    name: 'StudentSystem',
    component: StudentSystem
  }
]

const router = new VueRouter({
  routes
})

export default router
